#ifndef WEATHER_LABLE_H
#define WEATHER_LABLE_H

#include <QWidget>
#include <QLabel>
#include <QList>

#include <QColor>
#include <QPen>
#include <QBrush>
#include <QPainter>
#include <QPainterPath>
#include <QPaintEvent>

#include "weatherinfo.h"// 包含Forecast定义
#include <QDebug>
#include <QList>
#include <QMouseEvent>


class weather_lable : public QLabel
{
    Q_OBJECT
public:
    explicit weather_lable(QWidget *parent = nullptr);
    
    
    void paintEvent(QPaintEvent *event);
    
    // 设置天气温度数据
    void get_weather_temp(QList<Forecast> temp);
 
protected:
    int  high_temp[7]={0};// 初始化高温数组（默认7天）
    int  low_temp[7]={0};// 初始化低温数组
    
    QPoint high_temp_point[7];// 高温点坐标
    QPoint low_temp_point[7];// 低温点坐标
    
signals:
    
};

#endif // WEATHER_LABLE_H
